package org.jeecg.modules.inspection.service.impl;

import org.jeecg.modules.inspection.entity.PinspectionItem;
import org.jeecg.modules.inspection.entity.PinspetionArea;
import org.jeecg.modules.inspection.mapper.PinspetionAreaMapper;
import org.jeecg.modules.inspection.service.IPinspetionAreaService;
import org.jeecg.modules.inspection.vo.InspetionAreaPoint;
import org.jeecg.modules.inspection.vo.InspetionDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 巡检区域
 * @Author: jeecg-boot
 * @Date:   2019-09-26
 * @Version: V1.0
 */
@Service
public class PinspetionAreaServiceImpl extends ServiceImpl<PinspetionAreaMapper, PinspetionArea> implements IPinspetionAreaService {
    @Autowired
    private PinspetionAreaMapper pinspetionAreaMapper;


    @Override
    public void updateStatus(PinspetionArea pinspetionArea) {
        pinspetionAreaMapper.updateStatus(pinspetionArea);
    }

    @Override
    public void updateRes(String areaId,Integer res) {
        pinspetionAreaMapper.updateRes(areaId,res);
    }

    @Override
    public List<InspetionAreaPoint> selectListPointByLineId(String lineId) {
        return pinspetionAreaMapper.selectListPointByLineId(lineId);
    }

    @Override
    public List<InspetionDetails> queryAreaItems(String lineId) {
        return pinspetionAreaMapper.queryAreaItems(lineId);
    }

    @Override
    public List<PinspetionArea> selectAllItem(String processId) {
        return pinspetionAreaMapper.selectAllItem(processId);
    }

    @Override
    public List<PinspectionItem> selectItem(String processAreaId) {
        return pinspetionAreaMapper.selectItem(processAreaId);
    }
}
